{% extends 'book/base.html' %}
{% block title %}
    图书详情
{% endblock title %}
{% block content %}
    <p>ID: {{ book.id }}</p>
    <p>书名: {{ book.name }}</p>
    <p>作者: {{ book.author }}</p>
    <p>价格: {{ book.price }}</p>
    <a href="{% url 'book_edit' book_id=book.id %}">编辑图书</a>
    <form action="{% url 'book_delete' %}" method="post">
        {% csrf_token %}
        <input type="hidden" name="book_id" value="{{ book.id }}">
        <input type="submit" value="删除图书">
    </form>
{% endblock content %}